/*
 * IkaClient.h
 */

#ifndef IKACLIENT_H_
#define IKACLIENT_H_

#include <SFML/Network.hpp>
#include <SFML/Graphics.hpp>
#include <vector>

namespace atomic {

class IkaClient {
public:

	/**
	 * Default constructor
	 */
	IkaClient();

	/**
	 * Destructor
	 */
	virtual ~IkaClient();

	/**
	 * Send/Receive datas loop
	 */
	void Update();

	/**
	 * Re-initialization of parameters
	 */
	void Init();

private:

	/**
	 * Last packet received
	 */
	sf::Packet myPacket;

	/**
	 * port
	 */
	int myPort;

	/**
	 * save IP
	 */
	sf::IPAddress myServerAddress;

	/**
	 * Client socket
	 */
	sf::SocketTCP myClient;
};
}

#endif /* IKACLIENT_H_ */

